package TreeHole.save;

import TreeHole.patches.TreeHolePatch;

import java.util.ArrayList;

public class ExtraSave {
    public boolean render_boss;
    public boolean should_respawn_tree_holes;
    public ArrayList<Integer> spawn_x;
    public ArrayList<Integer> spawn_y;
    public ArrayList<String> specificIDs;
    public ArrayList<Integer> specificIndexes;
    public ArrayList<Boolean> entered;
    public int current_type;
    public ArrayList<String> boss_spawned;
    public String last_hole_id;


    public ExtraSave(){

    }

    public void onSave(){
        render_boss = TreeHolePatch.renderBoss;
        should_respawn_tree_holes = TreeHolePatch.shouldRespawnTreeHoles;
        spawn_x = TreeHolePatch.spawnX;
        spawn_y = TreeHolePatch.spawnY;
        specificIDs = TreeHolePatch.specificIDs;
        entered = TreeHolePatch.entered;
        current_type = TreeHolePatch.currentType;
        boss_spawned = TreeHolePatch.bossSpawned;
        last_hole_id = TreeHolePatch.lastHoleID;
    }

    public void onLoad(){
        TreeHolePatch.renderBoss = render_boss;
        TreeHolePatch.shouldRespawnTreeHoles = should_respawn_tree_holes;
        TreeHolePatch.spawnX = spawn_x;
        TreeHolePatch.spawnY = spawn_y;
        TreeHolePatch.specificIDs = specificIDs;
        TreeHolePatch.entered = entered;
        TreeHolePatch.currentType = current_type;
        TreeHolePatch.bossSpawned = boss_spawned;
        TreeHolePatch.lastHoleID = last_hole_id;
    }
}
